package com.dynamic.mybatis.core.metadata;

import java.util.List;

public class MappedStatementMetaField extends MappedStatementField {

    private Object id;
    private Object parentId;
    private boolean logicDelete;//是否为逻辑删除字段
    private String logicDeleteValue;
    private String logicNotDeleteValue;
    private boolean optimisticLock;//是否为乐观锁字段
    private boolean createBy;//是否为创建人字段
    private boolean createTime;
    private boolean updateBy;//修改人字段
    private boolean updateTime;
    protected List<MappedStatementMetaField> children;

    public boolean isLogicDelete() {
        return logicDelete;
    }

    public void setLogicDelete(boolean logicDelete) {
        this.logicDelete = logicDelete;
    }

    public String getLogicDeleteValue() {
        return logicDeleteValue;
    }

    public void setLogicDeleteValue(String logicDeleteValue) {
        this.logicDeleteValue = logicDeleteValue;
    }

    public String getLogicNotDeleteValue() {
        return logicNotDeleteValue;
    }

    public void setLogicNotDeleteValue(String logicNotDeleteValue) {
        this.logicNotDeleteValue = logicNotDeleteValue;
    }

    public boolean isOptimisticLock() {
        return optimisticLock;
    }

    public void setOptimisticLock(boolean optimisticLock) {
        this.optimisticLock = optimisticLock;
    }


    public boolean isCreateTime() {
        return createTime;
    }

    public void setCreateTime(boolean createTime) {
        this.createTime = createTime;
    }



    public boolean isUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(boolean updateTime) {
        this.updateTime = updateTime;
    }

    public List<MappedStatementMetaField> getChildren() {
        return children;
    }


    public void setChildren(List<MappedStatementMetaField> children) {
        this.children = children;
    }

    public Object getId() {
        return id;
    }

    public void setId(Object id) {
        this.id = id;
    }

    public Object getParentId() {
        return parentId;
    }

    public void setParentId(Object parentId) {
        this.parentId = parentId;
    }

    public boolean isCreateBy() {
        return createBy;
    }

    public void setCreateBy(boolean createBy) {
        this.createBy = createBy;
    }

    public boolean isUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(boolean updateBy) {
        this.updateBy = updateBy;
    }
}
